﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PWS
{
    public class Psw
    {
        /// <summary>
        /// 镇辖区登记人员信息表
        /// </summary>
        public class People
        {
            /// <summary>
            /// 数据唯一标识符
            /// </summary>
            [Key]
            [Required]
            [DatabaseGenerated(DatabaseGeneratedOption.None)]
            public Guid ID { get; set; }
            /// <summary>
            /// 姓
            /// </summary>
            [Required]
            [StringLength(20)]
            public string? FirseName { get; set; }
            /// <summary>
            /// 名
            /// </summary>
            [Required]
            [StringLength(30)]
            public string? LastName { get; set; }
            /// <summary>
            /// 居住地址
            /// </summary>
            [StringLength(150)]
            [Required]
            public string? Address { get; set; }
            /// <summary>
            /// 是否在外务工
            /// </summary>
            [Required]
            public bool IsOut { get; set; }
            /// <summary>
            /// 年龄
            /// </summary>
            [Required]
            public int Age { get; set; }
            /// <summary>
            /// 性别
            /// </summary>
            [Required]
            public bool Gender { get; set; }
            /// <summary>
            /// 标记_空巢老人
            /// </summary>
            public bool lable_empty { get; set; }
            /// <summary>
            /// 标记_贫困人口
            /// </summary>
            public bool lable_poverty { get; set; }
            /// <summary>
            /// 标记_慢性病人口
            /// </summary>
            public bool lable_chronic { get; set; }
            /// <summary>
            /// 出生日期
            /// </summary>
            [Required]
            public DateTime BirthDate { get; set; }
            /// <summary>
            /// 18位身份证号码
            /// </summary>
            [Required]
            [StringLength(20)]
            public string? IDNumber { get; set; }
            /// <summary>
            /// 注册时间
            /// </summary>
            [Required]
            public DateTime AddTime { get; set; }
        }
        /// <summary>
        /// 职工信息表
        /// </summary>
        public class Employee
        {
            /// <summary>
            /// 数据唯一标识符
            /// </summary>
            [Key]
            [Required]
            [DatabaseGenerated(DatabaseGeneratedOption.None)]
            public Guid ID { get; set; }
            /// <summary>
            /// enum:
            /// 0：领导
            /// 1：党务人员
            /// 2：雇员
            /// </summary>
            [Required]
            public int Postion { get; set; }
            /// <summary>
            /// 薪资
            /// </summary>
            [Required]
            public float Salary { get; set; }
            /// <summary>
            /// 手机号
            /// </summary>
            [Required]
            [StringLength(11)]
            public int Number { get; set; }
            /// <summary>
            /// 毕业学校
            /// </summary>
            [Required]
            [StringLength(30)]
            public string? School { get; set; }
            /// <summary>
            /// 家中几口人
            /// </summary>
            [Required]
            public int People { get; set; }
            /// <summary>
            /// 性别
            /// </summary>
            [Required]
            public bool Gender { get; set; }
            /// <summary>
            /// 薪资
            /// </summary>
            public int Pay { get; set; }
            /// <summary>
            /// 年龄
            /// </summary>
            [Required]
            public int Age { get; set; }
            /// <summary>
            /// 参加工作日期
            /// </summary>
            [Required]
            public DateTime WorkingDate { get; set; }
            /// <summary>
            /// 注册时间
            /// </summary>
            [Required]
            public DateTime AddTime { get; set; }
        }
        public class Interview
        {
            /// <summary>
            /// 主键
            /// </summary>
            [Key]
            [DatabaseGenerated(DatabaseGeneratedOption.None)]
            public Guid ID { get; set; }
            /// <summary>
            /// 姓
            /// </summary>
            [Required]
            [StringLength(20)]
            public string? FirseName { get; set; }
            /// <summary>
            /// 名
            /// </summary>
            [Required]
            [StringLength(30)]
            public string? LastName { get; set; }
            /// <summary>
            /// 性别
            /// </summary>
            [Required]
            public bool Gender { get; set; }
            /// <summary>
            /// 薪资
            /// </summary>
            public int Pay { get; set; }
            /// <summary>
            /// 年龄
            /// </summary>
            [Required]
            public int Age { get; set; }
            /// <summary>
            /// 18位身份证号码
            /// </summary>
            [Required]
            [StringLength(20)]
            public string? IDNumber { get; set; }
            /// <summary>
            /// 标记_空巢老人
            /// </summary>
            public bool lable_empty { get; set; }
            /// <summary>
            /// 标记_贫困人口
            /// </summary>
            public bool lable_poverty { get; set; }
            /// <summary>
            /// 标记_慢性病人口
            /// </summary>
            public bool lable_chronic { get; set; }
        }
    }
}
